import { http } from 'jindai-api'

export const fetchList = (id, params) => http.get(`item/${id}/comments`, { params })

export const fetchView = (id) => http.get(`comment/${id}`)

export const store = (id, params) => http.post(`item/${id}/comment`, params)